﻿/*
 * Name:        Wall entity
 * Description: An entity that acts like a solid wall
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Gyvate.Util;
using Gyvate.Worldspawn;

namespace Gyvate.Entities
{
    internal class Wall : BaseEntity
    {
        public Wall(Game game, Vector2d pos)
            : base(pos, game)
        {
            if (!m_game.IsPrecached(Constants.SPRITE_WALL))
                m_game.PrecacheSprite(Constants.SPRITE_WALL);

            this.SetSprite(Constants.SPRITE_WALL);
            m_tile = TileList.TILE_WALL;
        }

        public override void Collision()
        {
            m_game.SendEvent(EventList.EVENT_COLLIDEWALL);
        }
    }
}
